package com.wsc.castle.ui.activities;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.wsc.castle.R;
import com.wsc.castle.managers.ScreenManager;
import com.wsc.castle.ui.activities.base.BaseActivity;
import com.wsc.castle.ui.controls.HoverButton;

public class MainActivity extends BaseActivity {
	private HoverButton bNewGame;
	private HoverButton bExit;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_menu);
		super.onCreate(savedInstanceState);
	}

	@Override
	public void initComponents() {
		super.initComponents();

		bNewGame = (HoverButton) findViewById(R.id.menu_new);
		bExit = (HoverButton) findViewById(R.id.menu_exit);
	}

	@Override
	public void initListeners() {
		super.initListeners();

		bNewGame.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				ScreenManager.getInstance().forward(MainActivity.this, SirfaceActivity.class);
			}
		});

		bExit.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

	@Override
	public void initValues() {
		super.initValues();
	}
}